<?php
require("config/config.php");
$mysql = new SaeMysql();
 
$content= addslashes(strip_tags( $_REQUEST['content'] ));
$uid= strip_tags( $_REQUEST['uid'] );
$anony = strip_tags( $_REQUEST['anony'] );
$golden= strip_tags( $_REQUEST['golden'] );
 
if(isset($content) && is_numeric($uid) && isset($golden) && isset($anony)){
	$sql = "INSERT  INTO `bottle` ( `bid` , `content` , `date`, `uid`,`anony`,`golden`,`deleteuid`) VALUES ( '','"  . $mysql->escape( $content) . "' , NOW(), '"  . $mysql->escape( $uid) . "' , '".$anony."', '".$golden."','0') ";
	$mysql->runSql( $sql );
 
	if( $mysql->errno() != 0 )
	{
		echo "false";
	}else{
		echo "true";
	 } 
}else{
	echo "false";
}
$mysql->closeDb();
?>